﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections.ObjectModel;
using System.Text;
using System.Xml.Serialization;

namespace Core.CommunityFiles
{
    /// <summary>
    /// Representation of an XML file
    /// </summary>
    /// <example>
    /// 
    ///  <Community Name="Sample Community" xsi:noNamespaceSchemaLocation="community.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    ///  <Person LName="Accorti" VotingEligibility="Eligible" FName="Pónt" AKAName="Paul" AgeGroup="Pre-Youth" Voted="No"></Person>
    /// 
    /// </example>
    public class Community
    {
        [XmlAttribute(AttributeName = "Name")]
        public string Name { get; set; }

        [XmlElement(ElementName = "Person")]
        public List<Person> People { get; set; }
    }
}
